cmake_minimum_required(VERSION 3.0)

project(E2Rt_GNBA)

set(CMAKE_CXX_STANDARD 17)

# find_package(OpenCV REQUIRED)
# include_directories(${OpenCV_INCLUDE_DIRS})


find_package(Sophus REQUIRED)
include_directories(${Sophus_INCLUDE_DIRS})

# find_library(Pangolin REQUIRED)
# include_directories(${Pangolin_INCLUDE_DIRS})

find_library(FMT REQUIRED)
include_directories(${FMT_INCLUDE_DIRS})

include_directories("/usr/local/include/Eigen")

aux_source_directory(./ SOURCE_DIRS)

add_executable(E2Rt E2Rt.cpp)
add_executable(GNBA GN-BA.cpp)

target_link_libraries(E2Rt ${Sophus_LIBRARIES} fmt) 
target_link_libraries(GNBA ${Sophus_LIBRARIES} fmt) 